﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnvCommonUtility
{
    /// <summary>
    /// 课程表
    /// </summary>
    public class SyllabusModel : INotifyPropertyChanged
    {
        private string _classID;
        /// <summary>
        /// 所属班级
        /// </summary>
        public string ClassID
        {
            get
            {
                return _classID;
            }
            set
            {
                if (_classID == value) return;
                _classID = value;
                RaisePropertyChanged("ClassID");
            }
        }

        //////////////////////////////////////////////////////////////////////////
        // 每天的课程（可填写老师姓名，格式随意）
        //////////////////////////////////////////////////////////////////////////

        private string _columnTitleHeader;
        /// <summary>
        /// 列头
        /// </summary>
        public string ColumnTitleHeader
        {
            get
            {
                return _columnTitleHeader;
            }
            set
            {
                if (_columnTitleHeader == value) return;
                _columnTitleHeader = value;
                RaisePropertyChanged("ColumnTitleHeader");
            }
        }

        private string _monday;
        public string Monday
        {
            get
            {
                return _monday;
            }
            set
            {
                if (_monday == value) return;
                _monday = value;
                RaisePropertyChanged("Monday");
            }
        }

        public string _tuesday;
        public string Tuesday
        {
            get
            {
                return _tuesday;
            }
            set
            {
                if (_tuesday == value) return;
                _tuesday = value;
                RaisePropertyChanged("Tuesday");
            }
        }

        public string _wednesday;
        public string Wednesday
        {
            get
            {
                return _wednesday;
            }
            set
            {
                if (_wednesday == value) return;
                _wednesday = value;
                RaisePropertyChanged("Wednesday");
            }
        }

        public string _thursday;
        public string Thursday
        {
            get
            {
                return _thursday;
            }
            set
            {
                if (_thursday == value) return;
                _thursday = value;
                RaisePropertyChanged("Thursday");
            }
        }
        public string _friday;
        public string Friday
        {
            get
            {
                return _friday;
            }
            set
            {
                if (_friday == value) return;
                _friday = value;
                RaisePropertyChanged("Friday");
            }
        }
        public string _saturday;
        public string Saturday
        {
            get
            {
                return _saturday;
            }
            set
            {
                if (_saturday == value) return;
                _saturday = value;
                RaisePropertyChanged("Saturday");
            }
        }
        public string _sunday;
        public string Sunday
        {
            get
            {
                return _sunday;
            }
            set
            {
                if (_sunday == value) return;
                _sunday = value;
                RaisePropertyChanged("Sunday");
            }
        }

        public int _order;
        /// <summary>
        /// 排序号
        /// </summary>
        public int Order
        {
            get
            {
                return _order;
            }
            set
            {
                if (_order == value) return;
                _order = value;
                RaisePropertyChanged("Order");
            }
        }


        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        #endregion
    }
}
